import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/auths/login',
        method: 'post',
        data
    })
}

export function register(data) {
    return request({
        url: '/auths/register',
        method: 'post',
        data
    })
}
//刷新token
export function refreshToken(data) {
    return request({
        url: '/auths/refresh',
        method: 'post',
        data:{
            refreshToken:data.refreshToken
        }
    })
}